package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "salesmb_", schema = "boot", catalog = "")
//销售目标表
public class Salesmb {
    private int salesmbId;//销售目标id
    private Timestamp salesmbTime;//销售时间
    private BigDecimal salesmbValue;//目标值
    private BigDecimal salesmbAccomplish;//完成值
    private String salesmbRemarks;//备注
    private Integer deptId;//部门id
    private Integer empId;//员工id

    @Id
    @Column(name = "Salesmb_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getSalesmbId() {
        return salesmbId;
    }

    public void setSalesmbId(int salesmbId) {
        this.salesmbId = salesmbId;
    }

    @Basic
    @Column(name = "Salesmb_time", nullable = false)
    public Timestamp getSalesmbTime() {
        return salesmbTime;
    }

    public void setSalesmbTime(Timestamp salesmbTime) {
        this.salesmbTime = salesmbTime;
    }

    @Basic
    @Column(name = "Salesmb_value", nullable = true, precision = 2)
    public BigDecimal getSalesmbValue() {
        return salesmbValue;
    }

    public void setSalesmbValue(BigDecimal salesmbValue) {
        this.salesmbValue = salesmbValue;
    }

    @Basic
    @Column(name = "Salesmb_accomplish", nullable = true, precision = 2)
    public BigDecimal getSalesmbAccomplish() {
        return salesmbAccomplish;
    }

    public void setSalesmbAccomplish(BigDecimal salesmbAccomplish) {
        this.salesmbAccomplish = salesmbAccomplish;
    }

    @Basic
    @Column(name = "Salesmb_remarks", nullable = true, length = 200)
    public String getSalesmbRemarks() {
        return salesmbRemarks;
    }

    public void setSalesmbRemarks(String salesmbRemarks) {
        this.salesmbRemarks = salesmbRemarks;
    }

    @Basic
    @Column(name = "dept_d", nullable = true)
    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    @Basic
    @Column(name = "emp_id", nullable = true)
    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }


}
